

type iconType="success" | "loading" | "error" | "none" | undefined


// 1.定义导出用于消息提示的方法
export const tip = (title:string,icon?:iconType):void => { 
    uni.showToast({
        title,
        icon
    })
}

// 2.定义导出数据加载提示方法
export const showload = (title:string,mask:boolean=true):void => { 
    uni.showLoading({
        title,
        mask
    })
}

// 3.定义导出关闭数据加载提示方法
export const hideload = ():void => { 
    uni.hideLoading()
}